//
//  RecommendModel.m
//  God_is_a_Girl
//
//  Created by 李继鹏 on 15/9/23.
//  Copyright (c) 2015年 呸. All rights reserved.
//

#import "LJP_RecommendModel.h"

@implementation LJP_RecommendModel
+ (instancetype)traceWithDic:(NSDictionary *)dic
{
    LJP_RecommendModel *tracepage = [[LJP_RecommendModel alloc]init];
    
    /* KVC 赋值 */
    //    [tracepage setValuesForKeysWithDictionary:dic];
    tracepage.backview = [[[dic objectForKey:@"data"]firstObject]objectForKey:@"cover_image_w640"];
    
    tracepage.index_title = [[[dic objectForKey:@"data"]firstObject]objectForKey:@"name"];
    
    tracepage.popular_place_str = [[[dic objectForKey:@"data"]firstObject]objectForKey:@"popular_place_str"];
    
    tracepage.first_day = [[[dic objectForKey:@"data"]firstObject]objectForKey:@"first_day"];
    
    tracepage.day_count = [[[dic objectForKey:@"data"]firstObject]objectForKey:@"day_count"];
    
    tracepage.view_count = [[[dic objectForKey:@"data"]firstObject]objectForKey:@"view_count"];
    
    tracepage.name = [[[[dic objectForKey:@"data"]firstObject]objectForKey:@"user"]objectForKey:@"name"];
    
    tracepage.headview = [[[[dic objectForKey:@"data"]firstObject]objectForKey:@"user"]objectForKey:@"avatar_l"];
    
    tracepage.traceid = [[[dic objectForKey:@"data"]firstObject]objectForKey:@"id"];
    
    return tracepage;
}

@end
